package com.scau.model.view;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Entity(name = "purchase_detail_view")
public class PurchaseDetailView implements Serializable {
	private Long id;
	private Long purchase_id; // purchase.id
	private String material_id; // material.mateial_id
	private String material_name; // 材料名称
	private String supplier_name; // 供应商名称
	private Double amount; // 采购数量
	private String unit; // 材料单位
	private Long status; // 状态
	private String comments; // 备注
	private Long supplier_iid; // supplier.id
	private Long material_iid;// material.id
	private String supplier_telephone; // supplier.telephone
	private String supplier_address; // supplier.address

	@Id
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPurchase_id() {
		return purchase_id;
	}

	public void setPurchase_id(Long purchase_id) {
		this.purchase_id = purchase_id;
	}

	public String getMaterial_id() {
		return material_id;
	}

	public void setMaterial_id(String material_id) {
		this.material_id = material_id;
	}

	public String getMaterial_name() {
		return material_name;
	}

	public void setMaterial_name(String material_name) {
		this.material_name = material_name;
	}

	public String getSupplier_name() {
		return supplier_name;
	}

	public void setSupplier_name(String supplier_name) {
		this.supplier_name = supplier_name;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public Long getSupplier_iid() {
		return supplier_iid;
	}

	public void setSupplier_iid(Long supplier_iid) {
		this.supplier_iid = supplier_iid;
	}

	public Long getMaterial_iid() {
		return material_iid;
	}

	public void setMaterial_iid(Long material_iid) {
		this.material_iid = material_iid;
	}

	public String getSupplier_telephone() {
		return supplier_telephone;
	}

	public void setSupplier_telephone(String supplier_telephone) {
		this.supplier_telephone = supplier_telephone;
	}

	public String getSupplier_address() {
		return supplier_address;
	}

	public void setSupplier_address(String supplier_address) {
		this.supplier_address = supplier_address;
	}

	@Override
	public String toString() {
		return "id=" + id + " purchase_id=" + purchase_id + "\nmaterial_iid="
				+ material_iid + " material_id=" + material_id
				+ " material_name=" + material_name + "\nsupplier_iid"
				+ supplier_iid + " supplier_name=" + supplier_name
				+ " supplier_telephone=" + supplier_telephone
				+ " supplier_address=" + supplier_address + "\nunit=" + unit
				+ " amount=" + amount + " status=" + status + " comments="
				+ comments;
	}
}
